import { defineStore } from "pinia";
import { ElNotification, ElMessage, ElMessageBox } from "element-plus";
import axios from "axios";
import dayjs from "dayjs";

const useStore = defineStore({
  id: "journal",
  state: () => ({
    flowNote: {
      rateAlertValue: 90,
      recentNote: {
        content: null,
        acknowledgedNumber: -1,
      },
    },
    timerStatus: {
      targetTimestamp: 0,
      startTimestamp: 0,
      configDuration: 300000,
      currentDuration: 300000,
      showMainWindow: false,
      timerID: 0,
    },
    diversionShareStatus: {
      showToolbox: false,
      isToolboxLoading: false,
      currentList: [],
      currentListFiltered: [],
      queriedList: [],
      queryRange: [new Date(), new Date()],
      timerID: 0,
      lastCurrentListJSON: "",
    },
  }),
  getters: {},
  actions: {},
});

export default useStore;
